//
//  DZDetailTableViewCell.m
//  DaZhePrivateHomeCuisineClient
//
//  Created by zouzhisheng on 15-3-4.
//  Copyright (c) 2015年 zouzhisheng. All rights reserved.
//

#import "DZDetailTableViewCell.h"

@implementation DZDetailTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)loadContent:(NSString*)content{
    RTLabelComponentsStructure *componentsDS = [RCLabel extractTextStyle:content];
    RTLabelComponentsStructure *componentsDS1=[RCLabel extractTextStyle:componentsDS.plainTextData];
    self.contentLabel.componentsAndPlainText=componentsDS1;
    CGSize optimalSize = [self.contentLabel optimumSize];
    self.contentLabel.height=optimalSize.height+5;
}
@end
